﻿@model IEnumerable<L2C.Category>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Category_Name
        </th>
        <th>
            Descriptions
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Category_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descriptions)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.Category_Id }) |
            @Html.ActionLink("Details", "Details", new { id = item.Category_Id }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Category_Id })
        </td>
    </tr>
}

</table>
